package com.qianfeng.mybatis.mapper;

import com.qianfeng.mybatis.pojo.TbUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * created by 赵文韬 on 2022/3/3 10:09
 */
public interface UserMapper {
    TbUser findById(Long id);
    TbUser findUserNameAndPwd(@Param("username") String username,@Param("password") String pwd);
    List<TbUser> findByNameLike(String nameLike);
    List<TbUser> findByGenderAndRole(@Param("gender") String gender,@Param("role") Long role);
    List<TbUser> findByIds(@Param("ids") List<Long> id);
}
